import request from '@/utils/request'

// 查询楼栋告警列表
export function listBuildingEvent(query) {
  return request({
    url: '/project/bevent/list',
    method: 'get',
    params: query
  })
}

// 查询楼栋告警详情
export function getEventDetails(query) {
  return request({
    url: '/project/bevent/details',
    method: 'get',
    params: query
  })
}

// 处理告警事件
export function handleEvent(data) {
  return request({
    url: '/project/bevent/handle',
    method: 'post',
    data: data
  })
}
